<?php
/*header( "Access-Control-Allow-Origin:*");
header('Access-Control-Allow-Methods:POST');
header('Access-Control-Allow-Headers:x-requested-with,content-type');*/

header('Content-type:text/html;charset=utf-8');

$id = $_GET['id'];
//判断id值读取不同json文件返回不同数据
$data = file_get_contents('./json/'.$id.'.json');
if($id){
	echo json_encode($data);
};
//echo json_encode($data);

//active-data {key:val}  "{},{},{},{}"


